package com.zxtstudy;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Date;


@RestController
public class TestController {
    @GetMapping("/date")
    public String view(@RequestParam("birthday") Date birthday) {
        return "我的生日是：" + birthday + ",今天是" + new java.util.Date();
    }
}
